package com.xlhj.multiple.service.impl;

import com.xlhj.multiple.dao.SysUserDao;
import com.xlhj.multiple.entity.SysUser;
import com.xlhj.multiple.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysUserServiceImpl
 * @Description 用户表业务层接口实现类
 * @Author liucaijing
 * @Date 2021/2/24 11:48
 * @Version 1.0
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserDao userDao;

    @Override
    public List<SysUser> selectAllUser() {
        List<SysUser> userListOne = userDao.selectAllUserOne();
        List<SysUser> userListTwo = userDao.selectAllUserTwo();
        userListOne.addAll(userListTwo);
        return userListOne;
    }
}
